package com.zzx.auth.biz;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzx.auth.mapper.SysUserMapper;
import com.zzx.auth.model.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 系统用户仓储层
 */
@Service
public class SysUserBiz extends ServiceImpl<SysUserMapper, SysUser> {
    @Autowired
    private SysUserMapper sysUserMapper;

    /**
     * 获取系统用户
     *
     * @param userName 用户名
     * @return 用户对象
     */
    public SysUser selectUserByUserName(String userName) {
        return sysUserMapper.selectUserByUserName(userName);
    }
}
